<?php
print <<<EOT
<!doctype html>
<html>
<head>
<meta charset="$db_charset" />
<title>{$webPageTitle}提示信息</title>
<meta name="generator" content="phpwind $wind_version" />
<meta name="description" content="$metaDescription" />
<meta name="keywords" content="$metaKeywords" />
<SCRIPT type="text/javascript" language="JavaScript" src="js/core/core.js"></SCRIPT>
<script type="text/javascript" language="JavaScript" src="js/pw_ajax.js"></script>
<link rel="stylesheet" type="text/css" href="$imgpath/pw_core.css?101128" media="all" />
EOT;
@include Pcv($css_path);
print <<<EOT
-->
<link rel="stylesheet" type="text/css" href="$imgpath/register/register.css?110120" media="all" />
<base id="headbase" href="$db_bbsurl/" />
</head>
<body onKeyDown="try{keyCodes(event);}catch(e){}">
<div class="wrap">
	<div id="header">
		<div style="height:24px;"></div>
			 <div id="head" class="cc">
					<a href="$db_bbsurl/"><img src="$imgpath/$stylepath/logo.png" class="fl" title="phpwind" /></a>
			</div>
	</div>
	<div class="main-wrap">
		<div id="main">
			<div id="pw_content">
				<div class="p20">
					<div class="regTitle cc">
						<h5 class="s6"><b>提示信息</b></h5>
					</div>
					<div class="cc">
EOT;
if($showlogin){print <<<EOT
						<div class="regForm-wrap">
							<div class="regForm">
<script language="JavaScript">
function showcustomquest(qid){
	getObj("customquest").style.display = qid==-1 ? '' : 'none';
}
</script>
								<div class="regIgnore" style="padding-bottom:20px;">
									<div class="f14 mb5">您没有登录或者您没有权限访问此页面，可能有如下几个原因</div>
									<ol>
										<li>1、{$msg_info}</li>
										<li>2、您还不是站点会员,请先登录站点</li>
									</ol>
								</div>
<form action="login.php?" method="post" name="login">
								<div style="padding-left:15px;">
									<dl>
										<dt><div style="height:26px;">
EOT;
$arr_logintypename = array('用户名','UID','电子邮箱');
$value = 0;
if(count($_LoginInfo['logintype'])==1){
	$value = current($_LoginInfo['logintype']);print <<<EOT

				<input type="hidden" name="lgt" value="$value"/>$arr_logintypename[$value]

EOT;
}elseif(count($_LoginInfo['logintype'])>1){print <<<EOT

				<select name="lgt" onchange="document.login.pwuser.focus();" class="f14">

EOT;
	$i=1;
	foreach($_LoginInfo['logintype'] as $value){
		$str_checked = $i==1? 'SELECTED':'';
		$i++;print <<<EOT

				<option value="$value" $str_checked>{$arr_logintypename[$value]}</option>

EOT;
	}print <<<EOT

				</select>

EOT;
}else{print <<<EOT

				<input type="hidden" name="lgt" value="$value" />用户名

EOT;
}print <<<EOT
										</div></dt>
										<dd class="ip"><div class=""><input class="input" type="text" tabindex="11" name="pwuser" /></div></dd>
									</dl>
									<dl class="cc">
										<dt>密　码</dt>
										<dd class="ip"><div><input class="input" type="password" tabindex="12" name="pwpwd" /></div></dd>
										<dd><div class="p5"><a href="sendpwd.php#breadCrumb" class="s4" target="_blank">找回密码</a></div></dd>
									</dl>
EOT;
if($db_ifsafecv){print <<<EOT

									<dl class="cc">
										<dt>安全问题</dt>
										<dd class="ip"><select name="question" class="f14" style="width:230px;margin-top:3px;" onchange="showcustomquest(this.value)" tabindex="13"><option value="0">无安全问题</option><option value="1">我爸爸的出生地</option><option value="2">我妈妈的出生地</option><option value="3">我的小学校名</option><option value="4">我的中学校名</option><option value="5">我最喜欢的运动</option><option value="6">我最喜欢的歌曲</option><option value="7">我最喜欢的电影</option><option value="8" >我最喜欢的颜色</option><option value="-1">自定义问题</option></select></dd>
									</dl>
									<dl class="cc" id="customquest" style="display:none">
										<dt>自定义问题</dt>
										<dd class="ip"><div><input type="text" name="customquest" class="input" tabindex="14" /></div></dd>
									</dl>
									<dl class="cc">
										<dt>您的答案</dt>
										<dd class="ip"><div><input type="text" name="answer" class="input" tabindex="15"></div></dd>
									</dl>
EOT;
}if($db_ckquestion & 2 && $db_question){
if($db_imagequestion){
	$question = '<img id="ckquestion" src="ckquestion.php?q='.$qkey.'&t='.$timestamp.'" class="fl" align="top">';
}else{
	$question = $qkey<0 ? getMachineQuestion_1() :  $db_question[$qkey];
}
print <<<EOT
									<dl class="cc">
										<dt>验证问答</dt>
										<dd class="ip"><div><input class="input" type="text" name="qanswer" tabindex="16" /></div>
					</dd><dd class="tp" style="padding-top:0;">{$question}
<!--
EOT;
list(,$showq) = explode("\t", $db_qcheck);
if($showq && $qkey>0){print <<<EOT
-->
					正确答案:{$db_answer[$qkey]}
<!--
EOT;
}print <<<EOT
-->
					<input type="hidden" name="qkey" value="$qkey"/>
					</dd>
									</dl>


EOT;
}if($db_gdcheck & 2){
$gdSize = explode("\t",$db_gdsize);
print <<<EOT

									<dl class="cc">
										<dt>验证码</dt>
										<dd class="ip ck"><div><input class="input" type="text" name="gdcode" size="6" tabindex="17" onFocus="showgd();" alt="请输入验证码" /></div>
					<span id="ckcode">
<script type="text/javascript" src="js/pw_authcode.js"></script>
<script>
var flashWidth = "$gdSize[0]";
var flashHeight = "$gdSize[1]";
var gdtype = $db_gdtype;
showGdCode();
</script>
					</span></dd>
									</dl>
EOT;
}print <<<EOT
									<dl class="cc">
										<dt>隐身登录</dt>
										<dd class="ip">
											<label class="mr10"><input name="hideid" type="radio" value="1" />开启</label>
											<label><input name="hideid" type="radio" value="0" checked tabindex="18" />关闭</label>
										</dd>
									</dl>

									<dl class="cc">
										<dt>&nbsp;</dt>
										<dd class="ip">
											<span class="btn"><span><button type="submit" tabindex="19">登录</button></span></span><input type="hidden" name="forward" value="" /><input type="hidden" name="jumpurl" value="$jumpurl" /><input type="hidden" name="m" value="$db_mode" /><input type="hidden" name="step" value="2" /><input type="hidden" name="cktime" value="31536000" />
										</dd>
									</dl>
								</div>
</form>									
<script language="JavaScript">
document.login.pwuser.focus();
</script>
							</div>
						</div>
							<div class="regLogin f14">
								<div style="padding-left:20px;">
									<p class="mb5">还没有帐号？</p>
									<p style="padding-bottom:30px;"><span class="bt"><span><button type="button" onClick="location.href='$db_registerfile#breadCrumb';">注册一个</button></span></span></p>
									<p class="mb5"><a href="javascript:;" class="mr20 s4" onclick="javascript:history.go(-1);return false;" tabindex="20"><u>返回继续操作</u></a></p>
									<p>或者 <a id="showindex" tabindex="20" class="s4" href="$db_bbsurl"><u>返回首页</u></a></p>
								</div>
							</div>

EOT;
}else{print <<<EOT
						<div class="regForm-wrap" style="min-height:80px;">
							<div class="regForm">
								<div class="regIgnore">
<p class="f14 mb10">$msg_info</p>
EOT;
$dejump && $dejump!=1 && include_once PrintEot($dejump);
print <<<EOT
<p class="f14"><a onclick="var needReload = (is_ie ? history.length == 0 : history.length == 1); if(needReload){self.location.reload();}else{history.back();}return false;" class="s4 cp" tabindex="20" id="showback"><u>返回继续操作</u></a>，或者 <a id="showindex" tabindex="20" class="s4" href="$db_bbsurl"><u>返回首页</u></a></p>
								</div>
							</div>
						</div>

EOT;
}print <<<EOT

				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>
EOT;
?>